package com.Register.es;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ActivityDoc {
    @Schema(description = "活动id")
    private String id;

    @Schema(description = "活动名称")
    private String activityName;

    @Schema(description = "活动组织")
    private String organization;

    @Schema(description = "招募人数")
    private Integer recruitNumber;

    @Schema(description = "文章类别")
    private String tag;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "begin_time",fill = FieldFill.INSERT)
    @Schema(description = "活动开始时间")
    private LocalDateTime beginTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "end_time",fill = FieldFill.INSERT)
    @Schema(description = "活动结束时间")
    private LocalDateTime endTime;
}
